package com.ljh.feign;

import com.ljh.pojo.User;
import com.ljh.pojo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "user")
public interface UserFeign {
    @GetMapping("/user/findAll/{page}/{limit}")
    public UserVO findAll(@PathVariable("page") int page, @PathVariable("limit") int limit);
    @GetMapping("/user/count")
    public int count();
    @RequestMapping("/user/save")
    public void save(User user);
    @RequestMapping("/user/deleteById/{id}")
    public void deleteById(@PathVariable("id") long id);
}
